package com.gsm.phimhanhdong;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class CheckInstallAppReciver extends BroadcastReceiver {
	private static final String DEBUG_TAG = "CheckInstallAppReciver";

	@Override
	public void onReceive(Context context, Intent intent) {
		Log.e(DEBUG_TAG,
				"Recurring alarm; requesting CheckNewPhotoReciver service.");
		if (intent != null) {
			String action = intent.getStringExtra("action");

			if (action.equals("checkinstall_vloghot")) {
				Intent intent1 = new Intent(context, CheckInstallAppService.class);
				intent1.setAction(CheckInstallAppService.ACTIOn);
				context.startService(intent1);
			}
		}

	}
}